package hsky.mk.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import hsky.mk.entity.PersonInfo;
import hsky.mk.service.PersonInfoService;

@Controller
@RequestMapping("/api")
public class PersonInfoController {
	@Autowired
	private PersonInfoService personInfoService;
	
	public PersonInfoController () {
		System.out.println("构造器执行了");
	}
	
	@RequestMapping(value="/personInfo",method=RequestMethod.GET)
	@ResponseBody

	public Map< String, Object> loginhjb() {
		Map<String, Object> modelMap = new HashMap<String, Object>();
		Long userId = new Long(1234567);
//		PersonInfo info = personInfoService.getPersonIonfo(userId);
		return modelMap;
	}
}
